package com.cxl.autocode.data;

import java.util.Date;

public abstract class Path {
	
	private Date createDate;
	private String beanClassPath;
	private String beanName;
	private String servicePackage;
	private String actionPackage;
	private String daoPackage;
	private String author="wwwlike";
	private String modelName="";
	
	private String daoImplPackage;
	private String serviceImplPackage;
	
	
	
	public String dao="template/Dao.java.ftl";
	public String daoImpl="template/DaoImpl.java.ftl";
	public String service="template/Service.java.ftl";
	public String serviceImpl="template/ServiceImpl.java.ftl";
	public String action="template/Action.java.ftl";
	
	private String daoName;
	private String daoImplName;
	private String actionName;
	private String serviceName;
	private String serviceImplName;
	


	public Path(String beanClassPath) {
		this.beanClassPath = beanClassPath;
		transformPath();
		setCreateDate(new Date());
	}

	public String getBeanClassPath() {
		return beanClassPath;
		//
	}

	public void setBeanClassPath(String beanClassPath) {
		this.beanClassPath = beanClassPath;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	

	public String getServicePackage() {
		return servicePackage;
	}

	public void setServicePackage(String servicePackage) {
		this.servicePackage = servicePackage;
	}

	public String getActionPackage() {
		return actionPackage;
	}

	public void setActionPackage(String actionPackage) {
		this.actionPackage = actionPackage;
	}

	public String getDaoPackage() {
		return daoPackage;
	}

	public void setDaoPackage(String daoPackage) {
		this.daoPackage = daoPackage;
	}
	
	public String getDaoName() {
		return daoName;
	}

	public void setDaoName(String daoName) {
		this.daoName = daoName;
	}

	public String getDaoImplName() {
		return daoImplName;
	}

	public void setDaoImplName(String daoImplName) {
		this.daoImplName = daoImplName;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceImplName() {
		return serviceImplName;
	}

	public void setServiceImplName(String serviceImplName) {
		this.serviceImplName = serviceImplName;
	}

	
	public String getDaoImplPackage() {
		return daoImplPackage;
	}

	public void setDaoImplPackage(String daoImplPackage) {
		this.daoImplPackage = daoImplPackage;
	}

	public String getServiceImplPackage() {
		return serviceImplPackage;
	}

	public void setServiceImplPackage(String serviceImplPackage) {
		this.serviceImplPackage = serviceImplPackage;
	}

	
	
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
	public String getAuthor() {
		return author;
	}

	/**
	 * 作者
	 * @param author
	 */
	public void setAuthor(String author) {
		this.author = author;
	}
	
	
	/**
	 * 模块名称
	 * @return
	 */
	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public abstract void transformPath() ;
	
	
	

}
